package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 
 */
@Data
@ApiModel(value = "回收订单商品")
@TableName(value = "cms_recovery_order_pro")
@Table(name = "cms_recovery_order_pro", comment = "回收订单商品")
public class CmsRecoveryOrderPro implements Serializable {
    /**
     * 订单商品ID
     */
    @TableId
    @ApiModelProperty(value = "订单商品ID")
    @Column(type= MySqlTypeConstant.BIGINT, comment = "订单商品ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long orderProId;

    /**
     * 回收订单ID
     */
    @ApiModelProperty(value = "回收订单ID")
    @Column(comment = "回收订单ID")
    private Long recoveryOrderId;

    /**
     * 回收类型ID
     */
    @ApiModelProperty(value = "回收类型ID")
    @Column(comment = "回收类型ID")
    private Long recoveryTypeId;

    /**
     * 类型名称
     */
    @ApiModelProperty(value = "类型名称")
    @Column(comment = "类型名称")
    private String typeName;

    /**
     * 类型图片
     */
    @ApiModelProperty(value = "类型图片")
    @Column(comment = "类型图片", length = 2000)
    private String typeImg;

    /**
     * 每斤价格
     */
    @ApiModelProperty(value = "每斤价格")
    @Column(comment = "每斤价格", defaultValue = "0.00", type = MySqlTypeConstant.DECIMAL, length = 18, decimalLength = 2)
    private BigDecimal price;

    /**
     * 品类介绍
     */
    @ApiModelProperty(value = "品类介绍")
    @Column(comment = "品类介绍")
    private String introduction;

    /**
     * 出售数量
     */
    @ApiModelProperty(value = "出售数量")
    @Column(comment = "出售数量", defaultValue = "1")
    private Integer sellNumber;

    private static final long serialVersionUID = 1L;

}